package de.gameduell.framework.facebook.app.popups {
	import fl.transitions.easing.Bounce;
	import fl.transitions.easing.Regular;

	import de.gameduell.framework.gui.animation.CombinedTween;
	import de.gameduell.framework.gui.animation.GDTween;
	import de.gameduell.framework.gui.popup.Popup;

	import flash.filters.DropShadowFilter;

	public class GameFlowMessagePopup extends Popup {
		
		public function GameFlowMessagePopup(aId:String, aLifeTime:Number){
			super("gameFlowMessagePopup", aId, aLifeTime, false);
			
			var myShowTween:CombinedTween = new CombinedTween();
			myShowTween.addTween(new GDTween(sprite, "scaleX", Bounce.easeOut, 0, 1, 0.4, true));
			myShowTween.addTween(new GDTween(sprite, "scaleY", Bounce.easeOut, 0, 1, 0.4, true));
			showTween = myShowTween;
			
			hideTween = new GDTween(sprite, "alpha", Regular.easeIn, 1, 0, 0.5, true);
			
			sprite.filters = [new DropShadowFilter(10,45,0,0.5,3,2,0.75)];
		}
	}
}
